package com.nothingboard.module.board.model;

import com.nothingboard.module.member.model.MemberDto;

public class BoardAuthorityDto {
	
	/** 목록조회 */
	private String list;
	/** 등록 */
	private String write;
	/** 상세조회 */
	private String contents;
	/** 답변목록 */
	private String replylist;
	/** 답변상세조회 */
	private String reply;
	/** 답변등록 */
	private String replywrite;
	/** 댓글작성 */
	private String commentWrite;
	/** 첨부파일접근 */
	private String accessAttach;
	
	
	/** 그룹 */
	private String groupNo;
	/** 권한 */
	private String grantNo;
	/** 사용자번호 */
	private String usrNo;
	
	
	/**
	 * 사용자정보
	 * @param dto
	 */
	public void setUsrAuthority(MemberDto dto){
		if(dto == null){
			usrNo = grantNo = groupNo = "";
		}else{
			usrNo = String.valueOf(dto.getUsrNo());
			grantNo = dto.getGrantNo();
			groupNo = dto.getGroupNo();
		}
	}
	
	
	public String getList() {
		return list;
	}
	public void setList(String list) {
		this.list = list;
	}
	public String getWrite() {
		return write;
	}
	public void setWrite(String write) {
		this.write = write;
	}
	public String getContents() {
		return contents;
	}
	public void setContents(String contents) {
		this.contents = contents;
	}
	public String getReplylist() {
		return replylist;
	}
	public void setReplylist(String replylist) {
		this.replylist = replylist;
	}
	public String getReply() {
		return reply;
	}
	public void setReply(String reply) {
		this.reply = reply;
	}
	public String getReplywrite() {
		return replywrite;
	}
	public void setReplywrite(String replywrite) {
		this.replywrite = replywrite;
	}
	public String getCommentWrite() {
		return commentWrite;
	}
	public void setCommentWrite(String commentWrite) {
		this.commentWrite = commentWrite;
	}
	public String getAccessAttach() {
		return accessAttach;
	}
	public void setAccessAttach(String accessAttach) {
		this.accessAttach = accessAttach;
	}
	public String getGroupNo() {
		return groupNo;
	}
	public void setGroupNo(String groupNo) {
		this.groupNo = groupNo;
	}
	public String getGrantNo() {
		return grantNo;
	}
	public void setGrantNo(String grantNo) {
		this.grantNo = grantNo;
	}
	public String getUsrNo() {
		return usrNo;
	}
	public void setUsrNo(String usrNo) {
		this.usrNo = usrNo;
	}

}
